package com.netdisk.controller;
/**
 * 新建文件上传目录filesystem
 */
import java.io.File;
import javax.servlet.ServletConfig;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;

public class InitServlet extends HttpServlet {
	private static final long serialVersionUID = 1L;
	@Override
	public void init(ServletConfig config) throws ServletException {
		super.init(config);
		String contextPath = config.getServletContext().getRealPath("") +  "/WEB-INF/filesystem";
		System.out.println(contextPath);
		File file = new File(contextPath);
		if(!file.exists()){
				file.mkdir();
		}
	}
}
